TArray.BinarySearchUpperBound<T>(T[],T,Integer,TComparison,Integer,Integer) Method

Searches a range of elements in a sorted array for the given value, using a binary search algorithm returning the index for the last found value using the specified comparison.

Namespace: Spring
public
 class function BinarySearchUpperBound<T>(const values: array of T;
 const item: T; out foundIndex: Integer; const comparison: TComparison<T>;
 index, count: Integer): Boolean; overload; static;

Type Parameters

T

Parameters

values
Type: array of T

item
Type: T

foundIndex
Type: Integer

comparison
Type: TComparison<T>

index
Type: Integer

count
Type: Integer

Return Value

Type: Boolean